﻿Feature: Search
	As a User
	I want to search for products

Scenario: Search by author
	Given I have entered "Martin Folwer" as author
	When I press "Search"
	Then the author of the first book should be "Martin Fowler"

Scenario: Search by title
	Given I have entered "Patterns of Enterprise Application Architecture" as title
	When I press "Search"
	Then the author of the first book should be "Martin Fowler"
	And the title of the first book should be "Patterns of Enterprise Application Architecture"
	

Scenario Template: Booksearch
	Given I have entered "<author>" as author
	And I have entered "<title>" as title
	When I press "Search"
	Then the author of the first book should be "<author>"
	And the title of the first book should be "<title>"

Examples: 
	| author	       | title                                                                     |
	| Martin Fowler    | Patterns of Enterprise Application Architecture                           |
	| Gojko Adzic      | Specification by Example: How Successful Teams Deliver the Right Software |
	| Robert C. Martin | The Clean Coder: A Code of Conduct for Professional Programmers           |
